package cn.edu.sgu.www.mhxysy.entity.fabao;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 法宝四象属性
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("fbgl_fbsxsxb")
public class FabaoSixiangAttribute implements Serializable {
    private static final long serialVersionUID = 18L;

    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 法宝ID
     */
    @ApiModelProperty(value = "法宝ID")
    private String fabaoId;

    /**
     * 法宝四象属性类型ID
     */
    @ApiModelProperty(value = "法宝四象属性类型ID")
    private Integer sixiangId;

    public String uuid() {
        return IdentifierPrefixes.PREFIX_FBSXSX + StringUtils.uuid();
    }

}